<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/jsplib/pubhead.jsp"%>
<%@ page import="net.comm.common.ValueMaping" %>
<%@ taglib uri="/WEB-INF/myTaglib.tld" prefix="tag"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<TITLE>部落话题列表</TITLE>
	<link href="${cpath}/css/youlin.css" rel="stylesheet" type="text/css" media="all" />

</head>
<body>
<!--外套 start -->
<div class="wrap">
  <!--页首 start -->
	<%@ include file="/menu.jsp"%>
  <!--页首 end -->  
  
  <!--导航面包屑 start -->
  <div class="breadCrumb">
  <div class="breadCrumbNav">当前位置：<a href="${cpath}/users.do?action=main">我的主页</a> >>  <a href="${cpath}/group_get/groupID_${theForm.qryGroupID}.html">${myfn:getGroupName(theForm.qryGroupID)}</a></div>
	<%@ include file="/navf.jsp"%> 
 </div> 
  <!--导航面包屑 end -->
  
  <!--主体 start -->
 <div class="body">
 
  <div class="hotBox1">  
    <div class="hotBox1-left">
		<c:if test="${theForm.qryGroupID != 99999999 && theForm.qryGroupID > 0}">
		<a href="${cpath}/group_get/groupID_${theForm.qryGroupID}.html"><img src="${cpath}/${myfn:getGroupPic(theForm.qryGroupID)}" width="75" height="75" class="shequ icon user_icon_2"></a>
        <p class="nav"><a href="${cpath}/group_get/groupID_${theForm.qryGroupID}.html">${myfn:getGroupName(theForm.qryGroupID)}</a> > 话题区 </p>
		</c:if>
		<c:if test="${theForm.qryGroupID == 99999999 || theForm.qryGroupID == 0}">
		<p><a ><img src="${cpath}/images/fm.jpg" width="75" height="75" class="shequ icon user_icon_2"></a></p>
		<a href="${cpath}/qunzu_${theForm.groupID}">${myfn:getVillageName(theForm.qryVillageID)}</a>&nbsp;&gt;&nbsp;<a href="#">社区资料</a>
		</c:if>
      </div>
    <div class="hotBox1-right">
      <p><a href="javascript:history.go(-1);"><img src="${cpath}/images/icon_32.gif" width="137" height="25" /></a></p>
	  <c:if test="${myfn:groupAddFlag(theForm.qryGroupID,userID) ==  1}">
      <p><a href="${cpath}/gforum.do?action=addPage&groupID=${theForm.qryGroupID}"><img src="${cpath}/images/icon_31.gif" width="215" height="44" /></a></p>
	  </c:if>
	  <c:if test="${theForm.qryVillageID > 0}">
      <p><a href="${cpath}/gforum.do?action=addPage&groupID=99999999&villageID=${theForm.qryVillageID}"><img src="${cpath}/images/icon_31.gif" width="215" height="44" /></a></p>
	  </c:if>
    </div>
  </div> 
<div class="nav-active">
  <ul>
   <c:if test="${theForm.qryGroupID != 99999999 }">
    <li 
    <c:if test="${theForm.action == 'adlist' && theForm.qryOrderby == '' && theForm.qryUserID == 0 }">
	class="current"
    </c:if>	
	><a href="${cpath}/gforum_adlist/qryGroupID_${theForm.qryGroupID}.html" >最新话题</a></li>
    <li
    <c:if test="${theForm.action == 'adlist' && theForm.qryOrderby != '' && theForm.qryUserID == 0}">
	class="current"
    </c:if>	
	><a href="${cpath}/gforum.do?action=adlist&qryGroupID=${theForm.qryGroupID}&qryOrderby=Replycnt&qryDesc=Desc" >热门话题</a></li>   
    <li 
	<c:if test="${theForm.action == 'adlist' && theForm.qryUserID != 0 }">
	class="current"
    </c:if>	
	><a href="${cpath}/gforum.do?action=adlist&qryGroupID=${theForm.qryGroupID}&qryUserID=${userID}" >我发起的话题</a></li>
    <li
    <c:if test="${theForm.action == 'listFuID' }">
	class="current"
    </c:if>	
	><a href="${cpath}/gforum.do?action=listFuID&qryGroupID=${theForm.qryGroupID}&qryUserID=${userID}" >我加入的话题</a></li>
   </c:if>
  <c:if test="${theForm.qryGroupID == 99999999 && theForm.qryVillageID > 0}">
    <li 
	class="current"
	><a >社区资料</a></li>
   </c:if>
  </ul>
 </div>

   <form action="${cpath}/gforum.do" name="theForm"  method="post" enctype="multipart/form-data" >
   <div class="left-Box6-content-inner">
	<table class="noticeList_tbl"width="100%"  align="center" cellpadding="0" cellspacing="0">
          <tr class="top">
            <td width="5%" align="center">序号</td>
            <td width="50%">标题</td>
            <td width="8%">浏览</td>
            <td width="10%">回复</td>
            <td width="13%">作者</td>
            <td width="14%" align="center">最后回复</td>
          </tr>
		  <c:forEach var="forum" items="${forumlist}" varStatus="status"> 
          <tr>
            <td width="5%" align="center">${status.count}</td>
            <td width="50%">
			<c:if test="${forum.up=='1'}"><span class="up">顶</span></c:if> 
			<c:if test="${forum.good=='1'}"><span class="good">精</span></c:if> 
			<a href="${cpath}/gfollforum_list/qryGForumID_${forum.GForumID}.html"><c:out value="${forum.title}"></c:out></a></td>
            <td width="8%"><c:out value="${forum.attachcnt}"></c:out></td>
            <td width="10%"><c:out value="${forum.replycnt}"></c:out></td>
            <td width="13%"><a href="${cpath}/users_home/userID_${forum.userID}.html"><img src="${cpath}/${myfn:getUserPic(forum.userID)}" width="29" height="27" >&nbsp;${myfn:getUserNick(forum.userID)}</a></td>
            <td width="14%" align="center">${myfn:formatDate14(forum.mtime, "-")}</td>
          </tr>
		  </c:forEach> 
        </table>
   </div>
   <div class="page">
		<input type="hidden" name='qryGroupID'	value='${theForm.qryGroupID}'/>
		<input type="hidden" name='qryUserID'	value='${theForm.qryUserID}'/>
		<input type="hidden" name='qryDesc'		value='${theForm.qryDesc}'/>
		<input type="hidden" name='qryOrderby'	value='${theForm.qryOrderby}'/>
		<!-- 分页主键 formName字段当前的form名称 -->
		<%@ include file="/jsplib/page.jsp" %>
		<!--隐藏域-->
		<input type="hidden" name='action' value='adlist'/>
   </div>
   <div class="clearFloat"></div>
   </form>

  
    <div class="clearFloat"></div>
 </div> 
 <!--主体 end -->
 
 <!--页脚 start -->
	<%@ include file="/foot.jsp"%>
 <!--页脚 end --> 
</div>
<!--外套 end -->

</body>
</html>
<script>
    /**
     * 检查项目资料维护
     */
	function doConfirm()
	{
		var form = document.theForm;

		var action = form['action'];

		form.submit();
	}

</script>
